// const ipAddr = 'http://10.107.17.70:'
// const ipAddr = 'http://192.168.43.8:'
// const ipAddr = "175.27.157.113:";
const ipAddr = "http://175.27.157.113:"; //线上
// const ipAddr = "http://172.20.10.3:";
// const host = 'http://169.254.196.205:3000';
import axios from "axios";

const host = ipAddr + "8081"; //常规接口地址
const host2 = ipAddr + "8087"; //轨迹相关接口地址
const host3 = ipAddr + "8089"; //相似性
// const host4 = ipAddr + "12456"; // 区域规则预测
const host4 = "http://175.27.157.113:12456"; // 区域规则预测
const hostModel = ipAddr + "12457";
const hostModel2 = ipAddr + "12458";

window.mapUrl = "http://event.mobboy.cn/googlemaps/satellite/{z}/{x}/{y}.jpg"; //地图地址

//查询船舶信息
export const queryBoatas = `${host}/boatas/query`;
export const queryBoatasList = `${host}/boatasTraceEvent/list`;
// 轨迹
export const queryTrack = `${host}/boatas/queryTrack`;
//字典
export const getBaseData = `${host}/boatasTraceEvent/dict`;

//模型集成模块
//轨迹查询
export const getmodelFlight = `${host2}/trajectory/query`;
//轨迹预测
export const modelPredict = `${host2}/opendata/trajectory/predict`;

/** 地图数据目录接口*/
export const treeselect = `${host}/GisData/GisDataCatalog/treeselect`;
/** 地图数据查询接口 时间+树  */
export const queryGisData = `${host}/GisData/GisDataCatalog/queryGisData`;

export const queryFormationTracks = `${host}/GisData/GisDataCatalog/queryFormationTracks`;

export const querySegmentedTracks = `${host}/GisData/GisDataCatalog/querySegmentedTracks`;

export const queryLogbookTimeline = `${host}/GisData/GisDataCatalog/queryLogbookTimeline`;

export const queryFormation = `${host}/GisData/GisDataCatalog/queryFormationAndTracks`;

export const queryLogbookTimelineByShipTrackUuid = `${host}/GisData/GisDataCatalog/queryLogbookTimelineByShipTrackUuid`;

/** 相似性*/
export const getSimilarTrace = `${host3}/getSimilarTrace`;

//区域轨迹预测
export const eventAllPredict = `${host4}/AIS/predict`;
// 显示所有区域
export const areaShow = `${host4}/Area/show`;
// 添加
export const areaAdd_area = `${host4}/Area/Add_area`;
// 删除
export const areaDel_area = `${host4}/Area/Del_area`;
